home *** CD-ROM | disk | FTP | other *** search
- Path: news.iastate.edu!john
- From: john@iastate.edu (John Hascall)
- Newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
- Subject: Re: File descriptor equivalent of fflush?
- Followup-To: comp.unix.osf.osf1,comp.unix.ultrix
- Date: 30 Jan 1996 17:33:01 GMT
- Organization: Iowa State University, Ames, Iowa USA
- Message-ID: <4elkod$d4j@news.iastate.edu>
- References: <DLxHsx.7Ko@un.seqeb.gov.au> <4eit6j$q4p@sparcserver.lrz-muenchen.de>
- NNTP-Posting-Host: pooh.cc.iastate.edu
-
- <ua302aa@lrz-muenchen.de> wrote:
- }al012@svtstu.seqeb.gov.au (Anthony Lee) writes:
- }>I am trying to find an equivalent of fflush for file descriptors
- }>in ULTRIX and OSF.
- }
- }flushing buffers in not very meaningful for unbuffered i/o. If "low
- }level" i/o is buffered in ULTIRX or "OSF", try to find an answer
- }in a system specific group.
-
- That's not a great answer...
- + flushing buffers is meaningful for unbuffered i/o.
- + it isn't specific to Ultrix or OSF
-
- The answer is:
-
- status = fsync(fd);
-
- John
- --
- John Hascall ``An ill-chosen word is the fool's messenger.''
- Moderator, comp.unix.wizards
- Systems Software Engineer, ISU Comp Center + Ames, IA 50011 + 515/294-9551
- <a href="http://www.cc.iastate.edu/staff/systems/john/">My Homepage</a>
-